package Interpreter;

public class OrExpression implements Expression{

    private Expression expression1 = null;
    private Expression expression2 = null;

    public OrExpression(Expression one, Expression two){
        this.expression1 = one;
        this.expression2 = two;
    }

    @Override
    public boolean interpret(String context) {
        return expression1.interpret(context) || expression2.interpret(context);
    }

}
